Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

227
Visualizações
Trying to resolve Google Sheets API error code 403, "The request is missing a valid API key"

I have a nodejs project that is able to successfully read data from a google sheet using the nodejs google api when it is run as a command line script (using Oauth2 for authentication). However when the exact same google api calls are made with the exact same parameters, using the same client secret json file and OAuth token.json file, but this time from the back end of a nodejs webserver (using express), the following error is returned:

"code":403,"errors":[{"message":"The request is missing a valid API key.","domain":"global","reason":"forbidden"}]

It seems to be a strange error since API keys shouldn't be required when using OAuth2( or at least one isn't need when the call succeeds running as a single script).

I'm wondering if the google api code is somehow inferring the context in which it is running and is altering its behavior?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda